
const loginApi = (author) => {
    return $axios({
        //发送请求的路径
        url: `/author/login?phone=${author.phone}&password=${author.password}`,
        //请求类型
        method: 'get',
        //携带的参数
    })
}
function logoutApi() {
    return axios({
        url: '/author/logout',
        method: 'post'
    });
}
